package com.shazhu.nongjt.domain;

import com.shazhu.common.annotation.Excel;
import com.shazhu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 打印机设备对象 njt_printer_device
 * 
 * @author shazhu
 * @date 2024-09-28
 */
public class NjtPrinterDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialCode;

    /** MAC地址 */
    @Excel(name = "MAC地址")
    private String macCode;

    /** 认证状态:0-未认证,1-已认证 */
    @Excel(name = "认证状态:0-未认证,1-已认证")
    private Integer authStatus;

    /** 绑定用户ID */
    @Excel(name = "绑定用户ID")
    private Long bindUserId;

    /** 最后连接时间 */
    @Excel(name = "最后连接时间")
    private Date lastConnectTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setSerialCode(String serialCode) 
    {
        this.serialCode = serialCode;
    }

    public String getSerialCode() 
    {
        return serialCode;
    }
    public void setMacCode(String macCode) 
    {
        this.macCode = macCode;
    }

    public String getMacCode() 
    {
        return macCode;
    }
    public void setAuthStatus(Integer authStatus) 
    {
        this.authStatus = authStatus;
    }

    public Integer getAuthStatus() 
    {
        return authStatus;
    }
    public void setBindUserId(Long bindUserId) 
    {
        this.bindUserId = bindUserId;
    }

    public Long getBindUserId() 
    {
        return bindUserId;
    }
    public void setLastConnectTime(Date lastConnectTime) 
    {
        this.lastConnectTime = lastConnectTime;
    }

    public Date getLastConnectTime() 
    {
        return lastConnectTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("serialCode", getSerialCode())
            .append("macCode", getMacCode())
            .append("authStatus", getAuthStatus())
            .append("bindUserId", getBindUserId())
            .append("lastConnectTime", getLastConnectTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}